home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
MCASM.RAR
/
MC_ASM.EXE
/
WROX_ASM
/
CH12
/
COMMON
/
PALSORT.H
< prev
next >
Wrap
C/C++ Source or Header
|
1994-09-24
|
421b
|
17 lines
#ifndef SORT_H
#define SORT_H
#include "common.h"
#include "grfile.h"
typedef BOOL (less_func) (void *p1, void *p2); // is (*p1) less then (*p2) ?
typedef void** ptr_array;
void quicksort( ptr_array ptrarr, less_func less_fun,
int l, int r);
// sorts pointers in ptrarr (from l to r elements)
// sort palette according brightness
void sort_palette_bright( BGRpalette &pal, int colors);
#endif